//导入 mongoose
const mongoose = require('mongoose');

//5. 创建文档结构对象
let BookSchema = new mongoose.Schema({
  title: String,
  author: String,
  price: Number,
});

//6. 创建文档模型对象            集合名称
let BookModel = mongoose.model("movie", BookSchema);

//暴露
module.exports = BookModel;
